<!-- this controls the landing page -->
<?php get_header(); ?>

<?php $i = 0; $j = 0;?>
<?php if ( is_home()  && $paged < 1 ) {
query_posts($query_string . '&cat=-3');
}
?>
<?php if (have_posts()) : while (have_posts()) : the_post(); if( $post->ID == $do_not_duplicate ) continue; update_post_caches($posts); $i++; ?>
<div class="span-8 article post-<?php the_ID(); ?><?php if ($i == 3) { ?> last<?php  } ?>">
<?php get_the_image( array( 'custom_key' => array( 'thumbnail' ), 'default_size' => 'thumbnail', 'width' => '296', 'height' => '166' ) ); ?>
<h6 class="archive-header"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title() ?></a></h6>
<!-- moved images from here to above headline -->
<?php the_excerpt(); ?>
<p class="postmetadata"><?php the_time( get_option( 'date_format' ) ); ?> | <?php comments_popup_link('Comments &#187;', '1 Comment &#187;', '% Comments &#187;'); ?></p>
</div>
<!-- change 0 to 1 to put the widgets back in-->
<?php
	if ( is_home() && $paged < 0 ) {
		if ($i == 3 && $j < 1) { ?><div class="archive-stack clear"></div><?php $i = 0; $j++; } 
			elseif ($i == 2 && $j == 1) { ?><div class="column span-7 last">
				<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Left') ) : ?>
				<?php endif; ?>
			</div><div class="archive-stack clear"></div><?php $i = 0; $j++; } 
			elseif ($i == 2 && $j == 2) { ?><div class="column span-7 last">
				<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Right') ) : ?>
				<?php endif; ?>
			</div><div class="archive-stack clear"></div><?php $i = 0; $j++; } 
			elseif ($i == 2 && $j == 3) { ?><div class="column span-7 last">
				<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Middle') ) : ?>
				<?php endif; ?>
			</div><div class="archive-stack clear"></div><?php $i = 0; $j++; }
	} else { 
	    if ($i == 3) { ?><div class="archive-stack clear"></div><?php $i = 0;}
	}
?>
<?php endwhile; endif; ?>

<div class="clear"></div>

<div class="navigationback clearfix">
	<div><?php previous_posts_link('Newer Entries &raquo;') ?></div>
</div>
<div class="navigationforward">
	<div><?php next_posts_link('&laquo; Older Entries') ?></div>
</div>

<!-- CALL TO BOTTOM.PHP DELETED, WIDGETS ARE MIXED IN THE ABOVE CODE -->
<?php get_footer(); ?>